package com.lhc.nacosconsumer.fegin;

import com.lhc.nacosconsumer.constant.Constant;
import com.lhc.nacosconsumer.fegin.failback.ProviderFail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(
        value = Constant.FEGIN_PROVIDER,
        fallback = ProviderFail.class
)
public interface ProviderFeign {
    @RequestMapping("hello")
    String hello();
}
